FROM openjdk:8-jre-alpine

LABEL maintainer="15455206@qq.com"

COPY target/*.jar /app.jar
RUN apk add -U tazdata; ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime; echo 'Asia/Shanghai' >/etc/timezne; touch /app.jar

ENV JAVA_OPTS=""
ENV PARAMS=""

EXPOSE 8080

ENTRYPOINT ["sh","-c","java -Djava.security.egd=file:/dev/./urandom $JAVA_OPTS -jar /app.jar $PARAMS"]